package com.wander.designCreational.singleton.hungrymansingleton;

/**
 * @Author : WDYin
 * @Date : 2020/5/30
 * @Description :
 */
public class Test {
    static String a = "1";

    public static void main(String[] args) {
        /*Test.a = "2";
        System.out.println(SingletonStatic.getSingletonStatic());
        System.out.println(SingletonStatic.getSingletonStatic());*/
        A a = new A();
        A b = new A();
//        b.str = 2134;
        System.out.println(a.str == b.str);
        System.out.println(b.str);
    }
}
class A {
    String str = "kjsdghilgvbj问人家啊；撒地方啊";
}